<{include file="_header.html"}>

	<!-- 开始 -->
	<div class="form-div">
		<form id="searchForm" action="" method="POST">
			UID：&nbsp;<input class="text min" type="text" name="uid" value="<{$smarty.post.uid}>" />&nbsp;&nbsp;
			支付状态：&nbsp;<select name="state"><{html_options options=$states selected=$smarty.post.state}></select>&nbsp;
			<input class="button" type="submit" value="搜索">
		</form>
	</div>
	
	<div class="list-div">
		<table cellspacing="0" cellpadding="0">
		  <tr>
			<th width="5%">序号</th>
			<th width="5%">UID</th>
			<th width="5%">状态</th>
			<th class="left">收款支付宝</th>
			<th class="right" width="6%">提现金额</th>
			<th class="right" width="6%">账户余额</th>
			<th width="12%">支付时间</th>
			<th width="10%">提现IP</th>
			<th width="12%">申请时间</th>
			<th width="15%">操作</th>
		  </tr>
		  <{section name=i loop=$list}>
		  <tr>
			<td><{$smarty.section.i.iteration+$baseNum}></td>
			<td><{$list[i].uid}></td>
			<td><{$list[i].state_str}></td>
			<td class="left"><{$list[i].alipay}></td>
			<td class="right"><{math equation="a" a=$list[i].money format="￥%.2f"}></td>
			<td class="right"><{math equation="a" a=$list[i].balance format="￥%.2f"}></td>
			<td><{$list[i].pay_time|date_format:"%Y-%m-%d %H:%M:%S"}></td>
			<td><{$list[i].ip}></td>
			<td><{$list[i].apply_time|date_format:"%Y-%m-%d %H:%M:%S"}></td>
			<td>
				<{if $list[i].state == "0"}>
					<a href="<{url r='admin/exchange/pay' id=$list[i].id}>">支付</a>
				<{else}>
					已支付(描述：<{$list[i].description}>)
				<{/if}>
			</td>
		  </tr>
		  <{sectionelse}>
		  <tr>
		  	<td colspan="10">暂无数据</td>
		  </tr>
		  <{/section}>
		</table>
	</div>
	
	<!-- 分页 -->
	<{if $pagination != ""}>
	<div class="page"><{$pagination}></div>
	<{/if}>
	<!-- 结束 -->

<{include file="_footer.html"}>
